import HttpRequest from "../request";


//登录
export function getUserInfo(params) {
  return HttpRequest({
    url: '/user/tokenToInfo',
    method: 'GET',
    params: params
  })
}

//修改用户信息
export function updateUserInfo(params) {
  return HttpRequest({
    url: '/user/updateInfo',
    method: 'PUT',
    params: params
  })
}

//修改用户密码
export function reset_psd(params) {
  return HttpRequest({
    url: '/user/updateMyPsd',
    method: 'PUT',
    params: params
  })
}

//修改手机号码
export function upd_phone(params) {
  return HttpRequest({
    url: '/user/upd_phone',
    method: 'POST',
    params: params
  })
}